
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>16.3权限相关 · Flutter for Harmony教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="坚果派">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mind-maps/mindmaps.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="16.2原有项目迁移鸿蒙.html" />
    
    
    <link rel="prev" href="16.6ohos代码开发相关问题.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
         
<div class="donate-modal modal">
  <div class="modal-header">
    <div>
      <span>
        <img
          id="modal-avatar"
          class="modal-avatar"
          src="http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"
        />
      </span>
      <span id="nickname"> breeze </span>
      <p class="modal-close close" onclick="closeDonateModal()">×</p>
    </div>
    <div class="message">
      <div class="tip">
        <i></i>
        <span>随意打赏，但不要超过一顿早餐钱 💕</span>
      </div>
    </div>
  </div>
  <div class="modal-content">
    <div class="modal-pay-way">
      <div id="wxpay" onclick="showDonateImg(0)">
        <input
          type="radio"
          name="pay-way"
          value="wxpay"
          class="zs-type"
          checked="checked"
        />
        <span>
          <img
            id="wxpay-logo"
            src=""
          />
        </span>
      </div>
      <div id="alipay" onclick="showDonateImg(1)">
        <input type="radio" name="pay-way" value="alipay" class="zs-type" />
        <span>
          <img
            id="alipay-logo"
            src=""
          />
        </span>
      </div>
    </div>
    <div class="modal-pay-qrcode">
      <img id="wxpay-code" src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png" />
      <img
        id="alipay-code"
        src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png"
        hidden
      />
    </div>
  </div>
</div>
<div class="mask"></div>


<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://www.nutpi.net/" target="_blank">坚果派官网</a>
      </li><li>
        <a href="https://www.arkui.club/" target="_blank">ArkUI实战</a>
      </li><li>
        <a href="https://space.bilibili.com/480883651" target="_blank">哔哩哔哩</a>
      </li><li>
        <a href="https://gitcode.com/nutpi" target="_blank">GitCode</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    1.前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../坚果派介绍.html">
            
                <a href="../坚果派介绍.html">
            
                    
                    2.坚果派介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../chapter3/">
            
                <a href="../chapter3/">
            
                    
                    3.Flutter与Dart介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../chapter3/3.1Flutter介绍.html">
            
                <a href="../chapter3/3.1Flutter介绍.html">
            
                    
                    3.1 Flutter介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../chapter3/3.2Dart介绍.html">
            
                <a href="../chapter3/3.2Dart介绍.html">
            
                    
                    3.2 Dart介绍
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../chapter4/">
            
                <a href="../chapter4/">
            
                    
                    4.HarmonyOS/OpenHarmony与ArkTS介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter4/4.1HarmonyOS.html">
            
                <a href="../chapter4/4.1HarmonyOS.html">
            
                    
                    4.1 HarmonyOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../chapter4/4.2OpenHarmony.html">
            
                <a href="../chapter4/4.2OpenHarmony.html">
            
                    
                    4.2 OpenHarmony
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../chapter4/4.3HarmonyOSNEXT.html">
            
                <a href="../chapter4/4.3HarmonyOSNEXT.html">
            
                    
                    4.3 HarmonyOS NEXT
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../chapter4/4.4ArkTS语言.md">
            
                <span>
            
                    
                    4.4 ArkTS语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../chapter4/4.5三者的差异.html">
            
                <a href="../chapter4/4.5三者的差异.html">
            
                    
                    4.5 三者的区别与联系
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../chapter5/">
            
                <a href="../chapter5/">
            
                    
                    5.Flutter鸿蒙化
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../chapter5/5.1背景.md">
            
                <span>
            
                    
                    5.1 背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../chapter5/5.2原理.md">
            
                <span>
            
                    
                    5.2 原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../chapter5/5.3Impeller渲染引擎.md">
            
                <span>
            
                    
                    5.3 Impeller渲染引擎
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../chapter6/">
            
                <a href="../chapter6/">
            
                    
                    6.鸿蒙Flutter开发环境配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../chapter6/6.1windows环境配置.md">
            
                <span>
            
                    
                    6.1 Windows环境配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../chapter6/6.2mac环境配置.md">
            
                <span>
            
                    
                    6.2 Mac环境配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../chapter6/6.3使用FlutterSDK_3.22.1.md">
            
                <span>
            
                    
                    6.3 使用FlutterSDK 3.22.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../chapter6/6.4第一个鸿蒙Flutter应用程序.md">
            
                <span>
            
                    
                    6.4 第一个鸿蒙Flutter应用程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../chapter6/6.5运行到多平台.md">
            
                <span>
            
                    
                    6.5 运行到多平台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../chapter6/6.6OpenHarmony设备运行指导.md">
            
                <span>
            
                    
                    6.6 OpenHarmony设备运行指导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../chapter6/6.7现有Flutter项目支持鸿蒙.md">
            
                <span>
            
                    
                    6.7 现有Flutter项目支持鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../chapter6/6.8鸿蒙版Flutter仓库变更.md">
            
                <span>
            
                    
                    6.8 鸿蒙版Flutter仓库变更
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../chapter6/6.9使用FVM管理.md">
            
                <span>
            
                    
                    6.9 使用FVM管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../chapter6/6.10使用最新FlutterSDK配置开发环境.md">
            
                <span>
            
                    
                    6.10 使用最新FlutterSDK配置开发环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../chapter6/6.11真机与模拟器.md">
            
                <span>
            
                    
                    6.11 真机与模拟器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../chapter7/">
            
                <a href="../chapter7/">
            
                    
                    7.在鸿蒙应用中添加Flutter页面
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../chapter7/7.1如何使用 FlutterPage.html">
            
                <a href="../chapter7/7.1如何使用 FlutterPage.html">
            
                    
                    7.1如何使用 FlutterPage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../chapter7/7.2如何使用混合开发添加跳转 FlutterEntry.html">
            
                <a href="../chapter7/7.2如何使用混合开发添加跳转 FlutterEntry.html">
            
                    
                    7.2如何使用混合开发添加跳转 FlutterEntry
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../chapter7/7.3 harmonyos添加flutter页面跳转时路由的处理.html">
            
                <a href="../chapter7/7.3 harmonyos添加flutter页面跳转时路由的处理.html">
            
                    
                    7.3 harmonyos添加flutter页面跳转时路由的处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../chapter7/7.4使用 Flutter Channel实现和Flutter和HarmonyOS交互.html">
            
                <a href="../chapter7/7.4使用 Flutter Channel实现和Flutter和HarmonyOS交互.html">
            
                    
                    7.4使用 Flutter Channel实现和Flutter和HarmonyOS交互
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../chapter8/">
            
                <a href="../chapter8/">
            
                    
                    8.在鸿蒙应用中使用Flutter Channel能力
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../chapter8/8.1如何使用Flutter与鸿蒙通信 FlutterChannel.md">
            
                <span>
            
                    
                    8.1如何使用Flutter与鸿蒙通信 FlutterChannel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../chapter8/8.2如何使用混合开发添加跳转 FlutterEntry.html">
            
                <a href="../chapter8/8.2如何使用混合开发添加跳转 FlutterEntry.html">
            
                    
                    8.2如何使用混合开发添加跳转 FlutterEntry
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../chapter8/8.3如何使用lutter和鸿蒙next混合渲染.html">
            
                <a href="../chapter8/8.3如何使用lutter和鸿蒙next混合渲染.html">
            
                    
                    8.3如何使用Flutter和鸿蒙NEXT混合渲染
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../chapter8/8.4 混合渲染开发实践：以 fluttertpc_scan 三方库为例.html">
            
                <a href="../chapter8/8.4 混合渲染开发实践：以 fluttertpc_scan 三方库为例.html">
            
                    
                    8.4 混合渲染开发实践：以 fluttertpc_scan 三方库为例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../chapter8/8.5如何使用Flutter与鸿蒙通信 FlutterChannel.html">
            
                <a href="../chapter8/8.5如何使用Flutter与鸿蒙通信 FlutterChannel.html">
            
                    
                    8.5如何使用Flutter与鸿蒙通信 FlutterChannel
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../chapter9/">
            
                <a href="../chapter9/">
            
                    
                    9.与原生混合渲染
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../chapter9/9.1外接纹理适配.html">
            
                <a href="../chapter9/9.1外接纹理适配.html">
            
                    
                    9.1Flutter OHOS外接纹理适配简介.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../chapter9/9.2如何使用多引擎 FlutterEngineGroup.html">
            
                <a href="../chapter9/9.2如何使用多引擎 FlutterEngineGroup.html">
            
                    
                    9.2如何使用多引擎 FlutterEngineGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../chapter9/9.3如何使用PlatformView.html">
            
                <a href="../chapter9/9.3如何使用PlatformView.html">
            
                    
                    9.3如何使用PlatformView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../chapter9/9.4PlatformView同层渲染方案适配切换指导.html">
            
                <a href="../chapter9/9.4PlatformView同层渲染方案适配切换指导.html">
            
                    
                    9.4PlatformView同层渲染方案适配切换指导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" >
            
                <span>
            
                    
                    9.5如何使用混合开发 module
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../chapter10/">
            
                <a href="../chapter10/">
            
                    
                    10.开发Flutter静态库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/如何使用混合开发 module.md">
            
                    
                    10.1开发module
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发package.md">
            
                    
                    10.2开发package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发plugin.md">
            
                    
                    10.3开发plugin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" >
            
                <a target="_blank" href="https://gitcode.com/openharmony-sig/flutter_samples/blob/master/ohos/docs/04_development/开发FFI plugin.md">
            
                    
                    10.4开发FFI plugin
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../chapter11/">
            
                <a href="../chapter11/">
            
                    
                    11.Packages使用指南
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../chapter11/11.1高效使用 Packages指南.html">
            
                <a href="../chapter11/11.1高效使用 Packages指南.html">
            
                    
                    11.1高效使用 Packages指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../chapter11/11.2发布Packages.html">
            
                <a href="../chapter11/11.2发布Packages.html">
            
                    
                    11.2发布Packages
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../chapter12/">
            
                <a href="../chapter12/">
            
                    
                    12.鸿蒙适配Flutter三方库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../chapter12/12.1纯dart库无需迁移.html">
            
                <a href="../chapter12/12.1纯dart库无需迁移.html">
            
                    
                    12.1纯dart库无需迁移
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../chapter12/12.2坚果派已适配的库">
            
                <span>
            
                    
                    12.2坚果派目前适配三方库进展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../chapter12/12.3适配三方库之FlutterToast.html">
            
                <a href="../chapter12/12.3适配三方库之FlutterToast.html">
            
                    
                    12.3适配三方库之FlutterToast
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="../chapter12/12.4适配适配三方库之udid.md">
            
                <span>
            
                    
                    12.4适配三方库之udid
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="../chapter12/12.5适配torch_light.html">
            
                <a href="../chapter12/12.5适配torch_light.html">
            
                    
                    12.5适配torch_light.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="../chapter12/12.6适配flutter_native_contact_picker.html">
            
                <a href="../chapter12/12.6适配flutter_native_contact_picker.html">
            
                    
                    12.6适配flutter_native_contact_picker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="../chapter12/12.7适配flutter_timezone.html">
            
                <a href="../chapter12/12.7适配flutter_timezone.html">
            
                    
                    12.7适配flutter_timezone.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.8" data-path="../chapter12/12.8适配flutter_exit_app.html">
            
                <a href="../chapter12/12.8适配flutter_exit_app.html">
            
                    
                    12.8适配flutter_exit_app.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.9" data-path="../chapter12/12.9适配flutter_phone_direct_caller.html">
            
                <a href="../chapter12/12.9适配flutter_phone_direct_caller.html">
            
                    
                    12.9适配flutter_phone_direct_caller
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.10" data-path="../chapter12/12.10适配flutter_app_icon_badge.html">
            
                <a href="../chapter12/12.10适配flutter_app_icon_badge.html">
            
                    
                    12.10适配flutter_app_icon_badge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.11" data-path="../chapter12/12.11适配memory_info.html">
            
                <a href="../chapter12/12.11适配memory_info.html">
            
                    
                    12.11适配memory_info
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../chapter13/">
            
                <a href="../chapter13/">
            
                    
                    13.性能优化与调试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../chapter13/13.1DevTool使用.md">
            
                <span>
            
                    
                    13.1DevTool使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../chapter13/13.2性能分析定界指南.html">
            
                <a href="../chapter13/13.2性能分析定界指南.html">
            
                    
                    13.2性能分析定界(OpenHarmony平台)指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../chapter13/13.3梳理线程顺序.html">
            
                <a href="../chapter13/13.3梳理线程顺序.html">
            
                    
                    13.3性能分析第一步-梳理线程顺序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" data-path="../chapter13/13.4滑动响应时延.html">
            
                <a href="../chapter13/13.4滑动响应时延.html">
            
                    
                    13.4性能分析-滑动响应时延
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="../chapter13/13.5帧渲染跟踪.html">
            
                <a href="../chapter13/13.5帧渲染跟踪.html">
            
                    
                    13.5性能分析-帧渲染跟踪
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" data-path="../chapter13/13.6如何调试代码.html">
            
                <a href="../chapter13/13.6如何调试代码.html">
            
                    
                    13.6如何调试代码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../chapter14/">
            
                <a href="../chapter14/">
            
                    
                    14.迁移实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../chapter14/14.1拨打电话.html">
            
                <a href="../chapter14/14.1拨打电话.html">
            
                    
                    14.1拨打电话
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../chapter14/14.2使用url_launcher.html">
            
                <a href="../chapter14/14.2使用url_launcher.html">
            
                    
                    14.2使用url_launcher
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../chapter14/14.3flutter开发鸿蒙PC应用.html">
            
                <a href="../chapter14/14.3flutter开发鸿蒙PC应用.html">
            
                    
                    14.3flutter开发鸿蒙PC应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="../chapter14/14.4探索适用于鸿蒙原生应用的跨平台开发框架.html">
            
                <a href="../chapter14/14.4探索适用于鸿蒙原生应用的跨平台开发框架.html">
            
                    
                    14.4探索适用于鸿蒙原生应用的跨平台开发框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="../chapter14/14.5保存图片.html">
            
                <a href="../chapter14/14.5保存图片.html">
            
                    
                    14.5保存图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.6" data-path="../chapter14/14.6使用url.html">
            
                <a href="../chapter14/14.6使用url.html">
            
                    
                    14.6使用url
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../chapter15/">
            
                <a href="../chapter15/">
            
                    
                    15.上架审核
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../chapter15/15.1应用上架流程.html">
            
                <a href="../chapter15/15.1应用上架流程.html">
            
                    
                    15.1应用上架流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../chapter15/15.2审核注意事项.html">
            
                <a href="../chapter15/15.2审核注意事项.html">
            
                    
                    15.2审核注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="./">
            
                <a href="./">
            
                    
                    16.FAQ
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="16.5环境相关问题.html">
            
                <a href="16.5环境相关问题.html">
            
                    
                    16.1环境相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.2" data-path="16.6ohos代码开发相关问题.html">
            
                <a href="16.6ohos代码开发相关问题.html">
            
                    
                    16.2ohos代码开发相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.16.3" data-path="16.3权限相关.html">
            
                <a href="16.3权限相关.html">
            
                    
                    16.3权限相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.4" data-path="16.2原有项目迁移鸿蒙.html">
            
                <a href="16.2原有项目迁移鸿蒙.html">
            
                    
                    16.4原有项目迁移鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.5" data-path="16.1ohos应用编译相关问题.html">
            
                <a href="16.1ohos应用编译相关问题.html">
            
                    
                    16.5ohos应用编译相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.6" data-path="16.6ohos运行相关问题.md">
            
                <span>
            
                    
                    16.6ohos运行相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.7" data-path="16.7解析flutter相关的cppcrash堆栈.html">
            
                <a href="16.7解析flutter相关的cppcrash堆栈.html">
            
                    
                    16.7解析flutter相关的cppcrash堆栈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.8" data-path="16.8ohos引擎产物编译相关问题.html">
            
                <a href="16.8ohos引擎产物编译相关问题.html">
            
                    
                    ohos引擎产物编译相关问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../chapter17/">
            
                <a href="../chapter17/">
            
                    
                    17.阅读更多
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../chapter17/17.1版本.html">
            
                <a href="../chapter17/17.1版本.html">
            
                    
                    17.1版本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../chapter17/17.2平台判断与问题处理指南.html">
            
                <a href="../chapter17/17.2平台判断与问题处理指南.html">
            
                    
                    17.2平台判断与问题处理指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../chapter17/17.3鸿蒙版Flutter 3.22.0版本正式发布(1.0Release">
            
                <span>
            
                    
                    17.3鸿蒙版Flutter 3.22.0版本正式发布(1.0Release)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../chapter17/17.4优化 ohos 构建过程.html">
            
                <a href="../chapter17/17.4优化 ohos 构建过程.html">
            
                    
                    17.4优化 ohos 构建过程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.5" data-path="../chapter17/17.5新增use-application-binary命令.html">
            
                <a href="../chapter17/17.5新增use-application-binary命令.html">
            
                    
                    17.5新增use-application-binary命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../chapter18/">
            
                <a href="../chapter18/">
            
                    
                    18.多设备能力
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="../chapter18/18.1多设备自适应布局.html">
            
                <a href="../chapter18/18.1多设备自适应布局.html">
            
                    
                    18.1自适应布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.2" data-path="../chapter18/18.2多设备响应式布局.html">
            
                <a href="../chapter18/18.2多设备响应式布局.html">
            
                    
                    18.2响应式布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.3" data-path="../chapter18/18.3多设备典型布局场景.html">
            
                <a href="../chapter18/18.3多设备典型布局场景.html">
            
                    
                    18.3典型布局场景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.4" data-path="../chapter18/184Flutter交互归一能力.md">
            
                <span>
            
                    
                    18.4交互归一
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../chapter20/">
            
                <a href="../chapter20/">
            
                    
                    20.版本更新
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.19.1" data-path="../chapter20/20.1Flutter 3.22.0-ohos 1.0.1 Release发布.html">
            
                <a href="../chapter20/20.1Flutter 3.22.0-ohos 1.0.1 Release发布.html">
            
                    
                    20.1Flutter 3.22.0-ohos 1.0.1 Release发布
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.20" >
            
                <span>
            
                    
                    19.关于未来
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.20.1" data-path="../致谢.html">
            
                <a href="../致谢.html">
            
                    
                    致谢
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >16.3权限相关</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             
                <div id="vip-container">
                    <h1 id="&#x9E3F;&#x8499;&#x7248;flutter&#x5F00;&#x53D1;&#x76F8;&#x5173;"><a name="&#x9E3F;&#x8499;&#x7248;flutter&#x5F00;&#x53D1;&#x76F8;&#x5173;" class="plugin-anchor" href="#&#x9E3F;&#x8499;&#x7248;flutter&#x5F00;&#x53D1;&#x76F8;&#x5173;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9E3F;&#x8499;&#x7248;Flutter&#x5F00;&#x53D1;&#x76F8;&#x5173;</h1>
<h2 id="&#x7533;&#x8BF7;&#x6743;&#x9650;&#x76F8;&#x5173;&#x95EE;&#x9898;"><a name="&#x7533;&#x8BF7;&#x6743;&#x9650;&#x76F8;&#x5173;&#x95EE;&#x9898;" class="plugin-anchor" href="#&#x7533;&#x8BF7;&#x6743;&#x9650;&#x76F8;&#x5173;&#x95EE;&#x9898;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7533;&#x8BF7;&#x6743;&#x9650;&#x76F8;&#x5173;&#x95EE;&#x9898;</h2>
<p>&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</p>
<p>&#x5E94;&#x7528;&#x9700;&#x8981;&#x5728;<code>module.json5</code>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x7684;requestPermissions&#x6807;&#x7B7E;&#x4E2D;&#x58F0;&#x660E;&#x6743;&#x9650;&#xFF0C;&#x914D;&#x7F6E;&#x6743;&#x9650;&#x540E;&#x91CD;&#x65B0;&#x7B7E;&#x540D;&#x3002;</p>
<h2 id="flutter&#x8F93;&#x5165;&#x6846;&#x957F;&#x6309;&#x65E0;&#x6CD5;&#x7C98;&#x8D34;&#x95EE;&#x9898;"><a name="flutter&#x8F93;&#x5165;&#x6846;&#x957F;&#x6309;&#x65E0;&#x6CD5;&#x7C98;&#x8D34;&#x95EE;&#x9898;" class="plugin-anchor" href="#flutter&#x8F93;&#x5165;&#x6846;&#x957F;&#x6309;&#x65E0;&#x6CD5;&#x7C98;&#x8D34;&#x95EE;&#x9898;"><i class="fa fa-link" aria-hidden="true"></i></a>flutter&#x8F93;&#x5165;&#x6846;&#x957F;&#x6309;&#x65E0;&#x6CD5;&#x7C98;&#x8D34;&#x95EE;&#x9898;</h2>
<p>&#x5E94;&#x7528;&#x9700;&#x8981;&#x7533;&#x8BF7;&#x526A;&#x8D34;&#x677F;&#x6743;&#x9650;<code>ohos.permission.READ_PASTEBOARD</code>&#x3002;</p>
<pre><code>    &quot;requestPermissions&quot;: [
      {
        &quot;name&quot;: &quot;ohos.permission.READ_PASTEBOARD&quot;,
        &quot;reason&quot;: &quot;$string:EntryAbility_desc&quot;,
        &quot;usedScene&quot;: {
          &quot;abilities&quot;: [
            &quot;EntryAbility&quot;
          ],
          &quot;when&quot;: &quot;inuse&quot;
        }
      }
    ]
</code></pre><p>&#x901A;&#x77E5;
&#x6CE8;&#x610F;&#xFF1A;&#x60A8;&#x6B63;&#x5728;&#x7533;&#x8BF7;&#x53D7;&#x9650;&#x7684; ACL &#x6743;&#x9650;&#xFF1A;WRITE_IMAGEVIDEO&#x3001;READ_PASTEBOARD&#x3002;&#x8FD9;&#x4E9B;&#x6743;&#x9650;&#x5C06;&#x4E0E;&#x60A8;&#x7684;&#x5E94;&#x7528;&#x53D1;&#x5E03;&#x4E00;&#x8D77;&#x63A5;&#x53D7;&#x5BA1;&#x6838;&#x3002;&#x4E3A;&#x4E86;&#x52A0;&#x5FEB;&#x5BA1;&#x6838;&#x6D41;&#x7A0B;&#xFF0C;&#x8BF7;&#x7533;&#x8BF7;&#x4EE5;&#x4E0B;&#x6743;&#x9650;&#xFF08;&#x5982;&#x679C;&#x5B83;&#x4EEC;&#x8DB3;&#x4EE5;&#x6EE1;&#x8DB3;&#x60A8;&#x7684;&#x76EE;&#x7684;&#xFF09;&#xFF1A;SaveButton&#x3001;PasteButton&#x3002;&#x6743;&#x9650;&#x5E94;&#x7528;&#x573A;&#x666F;&#x4E0D;&#x8981;&#x518D;&#x8BE2;&#x95EE;&#x3002;</p>
<p><img src="https://nutpi-e41b.obs.cn-north-4.myhuaweicloud.com/image-20250309200716663.png" alt="image-20250309200716663"></p>
<h2 id="flutter&#x65E0;&#x6CD5;&#x4FDD;&#x5B58;&#x56FE;&#x7247;&#x5230;&#x76F8;&#x518C;&#x95EE;&#x9898;"><a name="flutter&#x65E0;&#x6CD5;&#x4FDD;&#x5B58;&#x56FE;&#x7247;&#x5230;&#x76F8;&#x518C;&#x95EE;&#x9898;" class="plugin-anchor" href="#flutter&#x65E0;&#x6CD5;&#x4FDD;&#x5B58;&#x56FE;&#x7247;&#x5230;&#x76F8;&#x518C;&#x95EE;&#x9898;"><i class="fa fa-link" aria-hidden="true"></i></a>flutter&#x65E0;&#x6CD5;&#x4FDD;&#x5B58;&#x56FE;&#x7247;&#x5230;&#x76F8;&#x518C;&#x95EE;&#x9898;</h2>
<p>&#x5E94;&#x7528;&#x9700;&#x8981;&#x7533;&#x8BF7;&#x4FDD;&#x5B58;&#x56FE;&#x7247;&#x6743;&#x9650;<code>ohos.permission.WRITE_IMAGEVIDEO</code>&#x3002;</p>
<pre><code>    &quot;requestPermissions&quot;: [
      {
        &quot;name&quot;: &quot;ohos.permission.WRITE_IMAGEVIDEO&quot;,
        &quot;reason&quot;: &quot;$string:EntryAbility_desc&quot;,
        &quot;usedScene&quot;: {
          &quot;abilities&quot;: [
            &quot;EntryAbility&quot;
          ],
          &quot;when&quot;: &quot;inuse&quot;
        }
      }
    ]
</code></pre><p>&#x548C;&#x4E0A;&#x9762;&#x4E00;&#x6837;&#xFF0C;&#x9700;&#x8981;&#x53D1;&#x90AE;&#x4EF6;&#x7533;&#x8BF7;&#xFF0C;&#x8C03;&#x8BD5;&#x7684;&#x8BDD;&#xFF0C;&#x53EF;&#x4EE5;&#x4E34;&#x65F6;&#x89E3;&#x51B3;&#x3002;</p>
<h2 id="dart&#x4EE3;&#x7801;&#x4E2D;&#x5224;&#x65AD;&#x5F53;&#x524D;&#x5E73;&#x53F0;&#x662F;&#x5426;&#x662F;ohos"><a name="dart&#x4EE3;&#x7801;&#x4E2D;&#x5224;&#x65AD;&#x5F53;&#x524D;&#x5E73;&#x53F0;&#x662F;&#x5426;&#x662F;ohos" class="plugin-anchor" href="#dart&#x4EE3;&#x7801;&#x4E2D;&#x5224;&#x65AD;&#x5F53;&#x524D;&#x5E73;&#x53F0;&#x662F;&#x5426;&#x662F;ohos"><i class="fa fa-link" aria-hidden="true"></i></a>dart&#x4EE3;&#x7801;&#x4E2D;&#x5224;&#x65AD;&#x5F53;&#x524D;&#x5E73;&#x53F0;&#x662F;&#x5426;&#x662F;ohos</h2>
<pre><code class="lang-dart"><span class="hljs-keyword">import</span> <span class="hljs-string">&apos;package:flutter/foundation.dart&apos;</span>;

<span class="hljs-built_in">bool</span> isOhos() {
  <span class="hljs-keyword">return</span> TargetPlatform == TargetPlatform.ohos;
}
</code></pre>
<p>&#x6240;&#x4EE5;&#x4F60;&#x4F1A;&#x4E86;&#x5417;&#xFF1F;</p>
<p>start hap build...
Running Hvigor task assembleHap...                                 27.3s
&#x2713; Built ohos/entry/build/default/outputs/default/entry-default-signed.hap.
installing hap. bundleName: com.nutpi.flutter_driver_exam 
error: failed to start ability.
error: unlock screen failed in developer mode.
Error launching application on 192.168.1.16:42647.</p>
<h2 id="&#x5DF2;&#x517C;&#x5BB9;openharmony&#x5F00;&#x53D1;&#x7684;&#x6307;&#x4EE4;&#x5217;&#x8868;"><a name="&#x5DF2;&#x517C;&#x5BB9;openharmony&#x5F00;&#x53D1;&#x7684;&#x6307;&#x4EE4;&#x5217;&#x8868;" class="plugin-anchor" href="#&#x5DF2;&#x517C;&#x5BB9;openharmony&#x5F00;&#x53D1;&#x7684;&#x6307;&#x4EE4;&#x5217;&#x8868;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5DF2;&#x517C;&#x5BB9;OpenHarmony&#x5F00;&#x53D1;&#x7684;&#x6307;&#x4EE4;&#x5217;&#x8868;</h2>
<table>
<thead>
<tr>
<th>&#x6307;&#x4EE4;&#x540D;&#x79F0;</th>
<th>&#x6307;&#x4EE4;&#x63CF;&#x8FF0;</th>
<th>&#x4F7F;&#x7528;&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>doctor</td>
<td>&#x73AF;&#x5883;&#x68C0;&#x6D4B;</td>
<td>flutter doctor</td>
</tr>
<tr>
<td>config</td>
<td>&#x73AF;&#x5883;&#x914D;&#x7F6E;</td>
<td>flutter config --<key> <value></value></key></td>
</tr>
<tr>
<td>create</td>
<td>&#x521B;&#x5EFA;&#x65B0;&#x9879;&#x76EE;</td>
<td>flutter create --platforms ohos,android,ios --org <org> <appname></appname></org></td>
</tr>
<tr>
<td>create</td>
<td>&#x521B;&#x5EFA;module&#x6A21;&#x677F;</td>
<td>flutter create -t module <module_name></module_name></td>
</tr>
<tr>
<td>create</td>
<td>&#x521B;&#x5EFA;plugin&#x6A21;&#x677F;</td>
<td>flutter create -t plugin --platforms ohos,android,ios <plugin_name></plugin_name></td>
</tr>
<tr>
<td>create</td>
<td>&#x521B;&#x5EFA;plugin_ffi&#x6A21;&#x677F;</td>
<td>flutter create -t plugin_ffi --platforms ohos,android,ios <plugin_name></plugin_name></td>
</tr>
<tr>
<td>devices</td>
<td>&#x67E5;&#x627E;&#x5DF2;&#x8FDE;&#x63A5;&#x8BBE;&#x5907;</td>
<td>flutter devices</td>
</tr>
<tr>
<td>install</td>
<td>&#x5E94;&#x7528;&#x5B89;&#x88C5;</td>
<td>flutter install -t <deviceid> <hap文件路径></hap文件路径></deviceid></td>
</tr>
<tr>
<td>assemble</td>
<td>&#x8D44;&#x6E90;&#x6253;&#x5305;</td>
<td>flutter assemble</td>
</tr>
<tr>
<td>build</td>
<td>&#x6D4B;&#x8BD5;&#x5E94;&#x7528;&#x6784;&#x5EFA;</td>
<td>flutter build hap --debug [--target-platform ohos-arm64]</td>
</tr>
<tr>
<td>build</td>
<td>&#x6B63;&#x5F0F;&#x5E94;&#x7528;&#x6784;&#x5EFA;</td>
<td>flutter build hap --release [--target-platform ohos-arm64]</td>
</tr>
<tr>
<td>run</td>
<td>&#x5E94;&#x7528;&#x8FD0;&#x884C;</td>
<td>flutter run</td>
</tr>
<tr>
<td>attach</td>
<td>&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;</td>
<td>flutter attach</td>
</tr>
<tr>
<td>screenshot</td>
<td>&#x622A;&#x5C4F;</td>
<td>flutter screenshot</td>
</tr>
<tr>
<td>pub</td>
<td>&#x83B7;&#x53D6;&#x4F9D;&#x8D56;</td>
<td>flutter pub get</td>
</tr>
<tr>
<td>clean</td>
<td>&#x6E05;&#x9664;&#x9879;&#x76EE;&#x4F9D;&#x8D56;</td>
<td>flutter clean</td>
</tr>
<tr>
<td>cache</td>
<td>&#x6E05;&#x9664;&#x5168;&#x5C40;&#x7F13;&#x5B58;&#x6570;&#x636E;</td>
<td>flutter pub cache clean</td>
</tr>
</tbody>
</table>
<p>flutter create  --org nutpi weather  </p>
<p>&#x200B;    flutter screenshot</p>
<h2 id="no-hmos-sdk-found"><a name="no-hmos-sdk-found" class="plugin-anchor" href="#no-hmos-sdk-found"><i class="fa fa-link" aria-hidden="true"></i></a>No Hmos SDK found.</h2>
<p>&#x89E3;&#x51B3;&#x529E;&#x6CD5;&#xFF1A;</p>
<p>flutter config --ohos-sdk=/Users/jianguo/Library/OpenHarmony/Sdk</p>
<p>flutter config --ohos-sdk=&quot;&quot;</p>
<p>&#x8FD9;&#x4E24;&#x4E2A;&#x547D;&#x4EE4;&#x6362;&#x7740;&#x6765;</p>
<p>[!] No Hmos SDK found. Try setting the HOS_SDK_HOME environment variable.
jianguo@nutpi flutter_health % flutter build apk
[!] No Hmos SDK found. Try setting the HOS_SDK_HOME environment variable.
jianguo@nutpi flutter_health % flutter assemble</p>
<h2 id="flutter-buld-hap&#x7684;&#x65F6;&#x5019;&#x4E71;&#x7801;"><a name="flutter-buld-hap&#x7684;&#x65F6;&#x5019;&#x4E71;&#x7801;" class="plugin-anchor" href="#flutter-buld-hap&#x7684;&#x65F6;&#x5019;&#x4E71;&#x7801;"><i class="fa fa-link" aria-hidden="true"></i></a>flutter buld hap&#x7684;&#x65F6;&#x5019;&#x4E71;&#x7801;</h2>
<pre><code>
Create a new GitHub issue by pasting this link into your browser and completing the
issue template. Thank you!
https://github.com/flutter/flutter/issues/new?title=%5Btool_crash%5D+ProcessException%3A+The+command+failed+with+exit+code+1+Command%3A+ohpm%2C+OS+error+code%3A+1&amp;body=%23%23+Command%0A%60%60%60%0Aflutter+build+hap%0A%60%60%60%0A%0A%23%23+Steps+to+Reproduce%0A1.+...%0A2.+...%0A3.+...%0A%0A%23%23+Logs%0AProcessException%3A+The+command+failed+with+exit+code+1+Command%3A+ohpm%2C+OS+error+code%3A+1%0A%60%60%60%0A%230++++++RunResult.throwException+%28package%3Aflutter_tools%2Fsrc%2Fbase%2Fprocess.dart%3A125%3A5%29%0A%231++++++_DefaultProcessUtils.runSync+%28package%3Aflutter_tools%2Fsrc%2Fbase%2Fprocess.dart%3A456%3A17%29%0A%232++++++ohpmInstall+%28package%3Aflutter_tools%2Fsrc%2Fohos%2Fhvigor.dart%3A180%3A16%29%0A%233++++++OhosHvigorBuilder.flutterBuildPre+%28package%3Aflutter_tools%2Fsrc%2Fohos%2Fhvigor.dart%3A586%3A11%29%0A%3Casynchronous+suspension%3E%0A%234++++++OhosHvigorBuilder.buildApplicationPipeLine+%28package%3Aflutter_tools%2Fsrc%2Fohos%2Fhvigor.dart%3A716%3A5%29%0A%3Casynchronous+suspension%3E%0A%235++++++OhosHvigorBuilder.buildHap+%28package%3Aflutter_tools%2Fsrc%2Fohos%2Fhvigor.dart%3A514%3A5%29%0A%3Casynchronous+suspension%3E%0A%236++++++BuildHapCommand.runCommand+%28package%3Aflutter_tools%2Fsrc%2Fcommands%2Fbuild_hap.dart%3A80%3A5%29%0A%3Casynchronous+suspension%3E%0A%237++++++FlutterCommand.run.%3Canonymous+closure%3E+%28package%3Aflutter_tools%2Fsrc%2Frunner%2Fflutter_command.dart%3A1394%3A27%29%0A%3Casynchronous+suspension%3E%0A%238++++++AppContext.run.%3Canonymous+closure%3E+%28package%3Aflutter_tools%2Fsrc%2Fbase%2Fcontext.dart%3A153%3A19%29%0A%3Casynchronous+suspension%3E%0A%239++++++CommandRunner.runCommand+%28package%3Aargs%2Fcommand_runner.dart%3A212%3A13%29%0A%3Casynchronous+suspension%3E%0A%2310+++++FlutterCommandRunner.runCommand.%3Canonymous+closure%3E+%28package%3Aflutter_tools%2Fsrc%2Frunner%2Fflutter_command_runner.dart%3A372%3A9%29%0A%3Casynchronous+suspension%3E%0A%2311+++++AppContext.run.%3Canonymous+closure%3E+%28package%3Aflutter_tools%2Fsrc%2Fbase%2Fcontext.dart%3A153%3A19%29%0A%3Casynchronous+suspension%3E%0A%2312+++++FlutterCommandRunner.runCommand+%28package%3Aflutter_tools%2Fsrc%2Frunner%2Fflutter_command_runner.dart%3A308%3A5%29%0A%3Casynchronous+suspension%3E%0A%2313+++++run.%3Canonymous+closure%3E.%3Canonymous+closure%3E+%28package%3Aflutter_tools%2Frunner.dart%3A130%3A9%29%0A%3Casynchronous+suspension%3E%0A%60%60%60%0A%60%60%60%0A%1B%5B33m%5B%21%5D%1B%5B39m+Flutter+%28Channel+oh-3.22.0%2C+3.22.1-0.0.pre.32%2C+on+macOS+13.4.1+22F82+darwin-arm64%2C%0A++++locale+zh-Hans-CN%29%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Flutter+version+3.22.1-0.0.pre.32+on+channel+oh-3.22.0+at%0A++++++%2FUsers%2Fjianguo%2Fhuawei%2Fflutter%0A++++%1B%5B33m%21%1B%5B39m+Upstream+repository+git%40gitee.com%3Aharmonycommando_flutter%2Fflutter.git+is+not+the%0A++++++same+as+FLUTTER_GIT_URL%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+FLUTTER_GIT_URL+%3D+https%3A%2F%2Fgitee.com%2Fopenharmony-sig%2Fflutter_flutter.git%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Framework+revision+7f2ea2ea24+%285+weeks+ago%29%2C+2025-02-10+06%3A51%3A49+%2B0000%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Engine+revision+f6344b75dc%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Dart+version+3.4.0%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+DevTools+version+2.34.1%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Pub+download+mirror+https%3A%2F%2Fpub.flutter-io.cn%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Flutter+download+mirror+https%3A%2F%2Fstorage.flutter-io.cn%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+If+those+were+intentional%2C+you+can+disregard+the+above+warnings%3B+however+it+is%0A++++++recommended+to+use+%22git%22+directly+to+perform+update+checks+and+upgrades.%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m+HarmonyOS+toolchain+-+develop+for+HarmonyOS+devices%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+OpenHarmony+Sdk+at+%2FUsers%2Fjianguo%2FLibrary%2FOpenHarmony%2FSdk%2C+available+api%0A++++++versions+has+%5B14%3A14%2C+12%3A12%5D%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Ohpm+version+5.0.11%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Node+version+v22.14.0%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Hvigorw+binary+at%0A++++++%2FApplications%2FDevEco-Studio.app%2FContents%2Ftools%2Fhvigor%2Fbin%2Fhvigorw%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m+Android+toolchain+-+develop+for+Android+devices+%28Android+SDK+version+34.0.0%29%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Android+SDK+at+%2FUsers%2Fjianguo%2FLibrary%2FAndroid%2Fsdk%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Platform+android-34%2C+build-tools+34.0.0%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+ANDROID_HOME+%3D+%2FUsers%2Fjianguo%2FLibrary%2FAndroid%2Fsdk%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Java+binary+at%3A+%2FApplications%2FAndroid%0A++++++Studio.app%2FContents%2Fjbr%2FContents%2FHome%2Fbin%2Fjava%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Java+version+OpenJDK+Runtime+Environment+%28build+17.0.6%2B0-17.0.6b829.9-10027231%29%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+All+Android+licenses+accepted.%0A%0A%1B%5B33m%5B%21%5D%1B%5B39m+Xcode+-+develop+for+iOS+and+macOS+%28Xcode+14.3.1%29%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Xcode+at+%2FApplications%2FXcode.app%2FContents%2FDeveloper%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Build+14E300c%0A++++%1B%5B33m%21%1B%5B39m+Flutter+recommends+a+minimum+Xcode+version+of+15.%0A++++++Download+the+latest+version+or+update+via+the+Mac+App+Store.%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+CocoaPods+version+1.16.2%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m+Chrome+-+develop+for+the+web%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Chrome+at+%2FApplications%2FGoogle+Chrome.app%2FContents%2FMacOS%2FGoogle+Chrome%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m+Android+Studio+%28version+2022.3%29%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Android+Studio+at+%2FApplications%2FAndroid+Studio.app%2FContents%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Flutter+plugin+can+be+installed+from%3A%0A++++++%F0%9F%94%A8+https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F9212-flutter%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Dart+plugin+can+be+installed+from%3A%0A++++++%F0%9F%94%A8+https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F6351-dart%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Java+version+OpenJDK+Runtime+Environment+%28build+17.0.6%2B0-17.0.6b829.9-10027231%29%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m+VS+Code+%28version+1.97.2%29%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+VS+Code+at+%2FApplications%2FVisual+Studio+Code.app%2FContents%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Flutter+extension+version+3.104.0%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m+Connected+device+%284+available%29%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+127.0.0.1%3A5555+%28mobile%29+++++++++%E2%80%A2+127.0.0.1%3A5555++++++++%E2%80%A2+ohos-arm64+++++%E2%80%A2+Ohos%0A++++++OpenHarmony-5.0.3.130+%28API+15%29%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+macOS+%28desktop%29+++++++++++++++++%E2%80%A2+macos+++++++++++++++++%E2%80%A2+darwin-arm64+++%E2%80%A2+macOS%0A++++++13.4.1+22F82+darwin-arm64%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Mac+Designed+for+iPad+%28desktop%29+%E2%80%A2+mac-designed-for-ipad+%E2%80%A2+darwin+++++++++%E2%80%A2+macOS%0A++++++13.4.1+22F82+darwin-arm64%0A++++%1B%5B32m%E2%80%A2%1B%5B39m+Chrome+%28web%29++++++++++++++++++++%E2%80%A2+chrome++++++++++++++++%E2%80%A2+web-javascript+%E2%80%A2%0A++++++Google+Chrome+134.0.6998.89%0A%0A%1B%5B33m%5B%21%5D%1B%5B39m+Network+resources%0A++++%1B%5B31m%E2%9C%97%1B%5B39m+A+network+error+occurred+while+checking+%22https%3A%2F%2Fpub.flutter-io.cn%22%3A+Failed+host%0A++++++lookup%3A+%27pub.flutter-io.cn%27%0A++++%1B%5B31m%E2%9C%97%1B%5B39m+A+network+error+occurred+while+checking+%22https%3A%2F%2Fstorage.flutter-io.cn%22%3A+Failed%0A++++++host+lookup%3A+%27storage.flutter-io.cn%27%0A++++%1B%5B31m%E2%9C%97%1B%5B39m+A+network+error+occurred+while+checking+%22https%3A%2F%2Fcocoapods.org%2F%22%3A+Failed+host%0A++++++lookup%3A+%27cocoapods.org%27%0A++++%1B%5B31m%E2%9C%97%1B%5B39m+A+network+error+occurred+while+checking+%22https%3A%2F%2Fgithub.com%2F%22%3A+Failed+host%0A++++++lookup%3A+%27github.com%27%0A%0A%1B%5B33m%21%1B%5B39m+Doctor+found+issues+in+3+categories.%0A%0A%60%60%60%0A%0A%23%23+Flutter+Application+Metadata%0A%2A%2AType%2A%2A%3A+app%0A%2A%2AVersion%2A%2A%3A+1.0.0%2B1%0A%2A%2AMaterial%2A%2A%3A+true%0A%2A%2AAndroid+X%2A%2A%3A+false%0A%2A%2AModule%2A%2A%3A+false%0A%2A%2APlugin%2A%2A%3A+false%0A%2A%2AAndroid+package%2A%2A%3A+null%0A%2A%2AiOS+bundle+identifier%2A%2A%3A+null%0A%2A%2ACreation+channel%2A%2A%3A+oh-3.22.0%0A%2A%2ACreation+framework+version%2A%2A%3A+7f2ea2ea242b1ae845ad5eaf5b210c2c67da9b78%0A%23%23%23+Plugins%0Acamera%0Acamera_android-0.10.9%2B11%0Acamera_avfoundation-0.9.18%2B9%0Acamera_ohos%0Acamera_web-0.3.5%0Aconnectivity_plus-5.0.2%0Afluttertpc_flutter_phone_direct_caller-8d4c198397fc0cfb971b8bc90a6cca91e577e57d%0Aflutter_plugin_android_lifecycle-2.0.22%0Afluttertpc_flutter_sms-09a75de411c369fddac432ce70ef8cb7d2ceb70f%0Apath_provider%0Apath_provider_android-2.2.10%0Apath_provider_foundation-2.4.1%0Apath_provider_linux-2.2.1%0Apath_provider_ohos%0Apath_provider_windows-2.3.0%0Apermission_handler%0Apermission_handler_android-10.3.6%0Apermission_handler_apple-9.1.4%0Apermission_handler_ohos%0Apermission_handler_windows-0.1.3%0Ascreen-6876db1d5378db90b46bbd12d742eb331b487fa9%0Ashared_preferences%0Ashared_preferences_android-2.3.2%0Ashared_preferences_foundation-2.5.4%0Ashared_preferences_linux-2.4.1%0Ashared_preferences_ohos%0Ashared_preferences_web-2.4.3%0Ashared_preferences_windows-2.4.1%0Aurl_launcher%0Aurl_launcher_android-6.3.9%0Aurl_launcher_ios-6.3.2%0Aurl_launcher_linux-3.2.1%0Aurl_launcher_macos-3.2.2%0Aurl_launcher_ohos%0Aurl_launcher_web-2.3.3%0Aurl_launcher_windows-3.1.4%0Avideo_player%0Avideo_player_android-2.7.1%0Avideo_player_avfoundation-2.7.0%0Avideo_player_ohos%0Avideo_player_web-2.3.4%0A%0A&amp;labels=tool%2Csevere%3A+crash

Running Hvigor task assembleHap...                                     &#x28DF;%             
jianguo@nutpi flutter_health %
</code></pre><p>&#x770B;&#x4E00;&#x4E0B;&#x662F;&#x4E0D;&#x662F;&#x6A21;&#x62DF;&#x5668;&#x5F00;&#x7684;&#xFF0C;&#x9700;&#x8981;&#x5173;&#x95ED;&#x6A21;&#x62DF;&#x5668;</p>
<h2 id="flutter-buld&#x89E3;&#x6790;"><a name="flutter-buld&#x89E3;&#x6790;" class="plugin-anchor" href="#flutter-buld&#x89E3;&#x6790;"><i class="fa fa-link" aria-hidden="true"></i></a>flutter buld&#x89E3;&#x6790;</h2>
<p>Available subcommands:
  aar               Build a repository containing an AAR and a POM file.
  apk               Build an Android APK file from your app.
  app               Build an Ohos App file from your app.
  appbundle         Build an Android App Bundle file from your app.
  bundle            Build the Flutter assets directory from your app.
  hap               Build an Ohos Hap file from your app.
  har               Build an Ohos har file from your app.
  hsp               Build an Ohos hsp file from your app.
  ios               Build an iOS application bundle (macOS host only).
  ios-framework     Produces .xcframeworks for a Flutter project and its plugins for
                    integration into existing, plain iOS Xcode projects.
  ipa               Build an iOS archive bundle and IPA for distribution (macOS host
                    only).
  macos             Build a macOS desktop application.
  macos-framework   Produces .xcframeworks for a Flutter project and its plugins for
                    integration into existing, plain macOS Xcode projects.
  web               Build a web application bundle.</p>
<footer class="page-footer"><span class="copyright">powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2025-05-13 08:48:17
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                </div>
                <script src="https://my.openwrite.cn/js/readmore.js"></script>
                <script>
                    var enablePlugin = false;
                    var allowDomain = "localhost";
                    if(allowDomain){
                        var currentDomain = location.hostname;
                        if ($.isArray(allowDomain)) {
                            $.each(allowDomain, function(index, item) {
                                if (currentDomain == item) {
                                    enablePlugin = true;
                                    return false;
                                }
                            });
                        }else{
                           if (currentDomain == allowDomain) {
                                enablePlugin = true;
                            }
                        }
                    }else{
                        enablePlugin = true;
                    }
                    
                    if(enablePlugin){
                        var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
                        if (!isMobile) {
                            var btw = new BTWPlugin();
                            btw.init({"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果","id":"vip-container"});
                        }
                    }
                </script> 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
          <div class="book-footer">
            
            <div class="donate">
              <div></div>
              <button class="donate-btn" onclick="showModal()">赞赏</button>
            </div>
             
            <div class="copyright"></div>
            
          </div>
          
        </div>
      </div>
      
    </div>

     
    <a
      href="16.6ohos代码开发相关问题.html"
      class="
        navigation navigation-prev
        
      "
      aria-label="Previous page: 16.2ohos代码开发相关问题"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="16.2原有项目迁移鸿蒙.html"
      class="
        navigation navigation-next
        
      "
      aria-label="Next page: 16.4原有项目迁移鸿蒙"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"16.3权限相关","level":"1.16.3","depth":2,"next":{"title":"16.4原有项目迁移鸿蒙","level":"1.16.4","depth":2,"path":"chapter16/16.2原有项目迁移鸿蒙.md","ref":"./chapter16/16.2原有项目迁移鸿蒙.md","articles":[]},"previous":{"title":"16.2ohos代码开发相关问题","level":"1.16.2","depth":2,"path":"chapter16/16.6ohos代码开发相关问题.md","ref":"./chapter16/16.6ohos代码开发相关问题.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github-buttons@2.1.0","edit-link","splitter","tbfed-pagefooter","expandable-chapters","chapter-fold","back-to-top-button","code","pageview-count","popup","search-plus","-lunr","-search","splitter","-sharing","sharing-plus","theme-lou","mind-maps","emphasize","anchors","changyan","readmore","livereload","ace","livereload"],"root":".","styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"pluginsConfig":{"expandable-chapters":{}},"emphasize":{},"ace":{},"livereload":{},"splitter":{},"readmore":{"allowDomain":"localhost","blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link",".summary .divider"],"color":"#FF4848","book-anchor-title":"本章目录","copyright":{"author":"vx:nut_pie"},"forbidCopy":true,"logo":"assets/avatar.png","book-summary-title":"文章目录","search-placeholder":"输入关键字搜索","copyrightLogo":"assets/copyright.png","favicon":"assets/avatar.png","appleTouchIconPrecomposed152":"assets/avatar.png"},"changyan":{"appid":"cyvHoCPAs","conf":"0440cfc4168ba95d73cfc52dd4d5c60b"},"fontsettings":{"theme":"white","family":"sans","size":2},"mind-maps":{},"highlight":{},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"ITmxs/gitbook","types":["star","watch","fork"],"size":"small"},"sharing":{"qq":false,"all":["qq","qzone","whatsapp","douban","facebook","google","instapaper","linkedin","messenger","twitter","weibo"],"douban":false,"facebook":false,"weibo":false,"twitter":false,"pocket":false,"google":false,"qzone":false},"edit-link":{"label":"编辑此页","base":"https://github.com/ITmxs/gitbook/edit/master/"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"坚果派","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://www.nutpi.net/","name":"坚果派官网"},{"target":"_blank","url":"https://www.arkui.club/","name":"ArkUI实战"},{"target":"_blank","url":"https://space.bilibili.com/480883651","name":"哔哩哔哩"},{"target":"_blank","url":"https://gitcode.com/nutpi","name":"GitCode"}],"footer":{"donate":{"wechat":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","message":"随意打赏，但不要超过一顿早餐钱 💕","wxpay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","alipay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png","nickname":"breeze","button":"打赏","wechatText":"微信","alipayText":"支付宝","title":"『赠人玫瑰 🌹 手有余香 』","avatar":"http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"},"copyright":true}}},"title":"Flutter for Harmony教程","language":"zh-hans","gitbook":"*","description":"Flutter for Harmony电子书教程"},"file":{"path":"chapter16/16.3权限相关.md","mtime":"2025-05-13T00:48:17.061Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2025-05-23T02:48:55.492Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mind-maps/mindmaps.dist.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-changyan/changyan.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

